      <h2>Account<% if logged_in? %> (<%= link_to current_user.login, :controller => '/account', :action => 'show', :id => 'tecnobrat' %>)<% end %></h2>
			<% if logged_in? %>
  			<ul>
          <li><%= link_to 'Change Password', :controller => '/account', :action => 'change_password' %></li>
          <li><%= link_to 'Change Email Address', :controller => '/account', :action => 'change_email' %></li>
          <li><%= link_to 'Logout', :controller => '/account', :action => 'logout' %></li>
  			</ul>
      <% else %>
        <div style="padding-left: 10px">
          <form action="/account/login" method="post">
            <p><label for="login">Login</label><br/>
            <%= text_field_tag 'login', params[:login] %></p>
            
            <p><label for="password">Password</label><br/>
            <%= password_field_tag 'password' %></p>
            
            <!-- Uncomment this if you want this functionality -->
            <p><label for="remember_me">Remember me:</label>
            <%= check_box_tag 'remember_me' %></p>
            <!--  -->
            
            <p><%= submit_tag 'Log in' %></p>
          </form>
        </div>
  			<ul>
          <li><%= link_to 'Forgot Password', :controller => '/account', :action => 'forgot_password' %></li>
          <li><%= link_to 'Signup', :controller => '/account', :action => 'signup' %></li>
  			</ul>
      <% end %>

			<h2>Media</h2>
			<ul>
			  <% if logged_in? and current_user.has_role?(['Administrator', 'Uploader', 'Moderator'])%>
				<li><%= link_to 'Add Media', :controller => '/media', :action => 'new' %></li>
        <% end %>
				<li><%= link_to 'Random Media', :controller => '/media', :action => 'random' %></li>
				<li><%= link_to 'Browse Media', :controller => '/media', :action => 'list' %></li>
			</ul>